<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="./css/mui.css" rel="stylesheet" />
		<style type="text/css">
			.mui-bar{
				background: #FFFFFF;
			}
			a , .mui-title{
				color:rgba(51,51,51,1);
			}
			body{
				background-color: #F8F8F8;
			}
			.container_ship{
				width: 100%;
				height: 112px;
				position: relative;
				float: left;
				background: #FFFFFF;
				
				margin-top: 15px;
			}
			.ship_one{
				width: 100%;
				height: 56px;
				position: relative;
				float: left;
				border-bottom: 1px solid #F8F8F8;
				line-height: 56px;
				padding-left: 15px;
			}
			.ship_one>img:nth-child(1){
				width: 20px;
				height: 20px;
				position: relative;
				float: left;
				margin-top: 18px;
			}
			.ship_one>span{
				font-size:16px;
				font-family:PingFang-SC-Bold;
				font-weight:bold;
				color:rgba(51,51,51,1);
				padding-left: 15px;
			}
			.ship_one>img:nth-child(3){
				width: 6px;
				height: 9px;
				position: relative;
				float: right;
				margin-right: 15px;
				 margin-top: 25px;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">发布上传</h1>
		</header>
		<div class="mui-content">
			<div class="container_ship">
				<div class="ship_one scshipi">
					<img src="./image/shiping.png" alt="">
					<span>去上传视频</span>
					<img src="./image/youjiantous.png" alt="">
				</div>
				<div class="ship_one scshangp">
					<img src="./image/shangping.png" alt="">
					<span>去上传商品</span>
					<img src="./image/youjiantous.png" alt="">
				</div>
			</div>
		</div>
		<script src="./js/mui.js"></script>
		<script type="text/javascript">
			mui.plusReady(function(){
				var url = plus.storage.getItem('url');
				var user = plus.storage.getItem('user');
				user = JSON.parse(user);
				mui.init()
						//点击上传视频
					mui(".container_ship").on("tap",".scshipi",function(){
					mui.openWindow({
						url:"./sub3/shipingshangchuan.html",
						id:"shipingshangchuan.html",
					})
				})
				
					   //点击上传商品
						mui(".container_ship").on("tap",".scshangp",function(){
							mui.post(url+'/juyou/mycommodity/getmycommodity',{token:user.token},function(res){
								if(res.code==200){
									if(res.data==2){
										mui.openWindow({
											url:"./sub3/shangpinshangchuan.html",
											id:"shangpinshangchuan.html",
										})
									}else if(res.data==1){
										mui.toast('平台正在审核,请耐心等待');
									}else{
										mui.toast('还没有成为商家请先去申请');
										setTimeout(function(){
											mui.openWindow({
												url:"./sub5/settled.html",
												id:"settled.html",
											})
										},1000)
									}
									
								}else{
									mui.toast(res.msg);
								}
							})
						
					})
			})
			
		</script>
	</body>

</html>
